home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / LITTLE / P3SRC.ZIP / ATARI / PORT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-21  |  1.4 KB  |  103 lines

  1.  
  2. #include <process.h>
  3. #include <sysvars.h>
  4. #include "frame.h"
  5. #include "povproto.h"
  6. #include "povray.h"
  7. #include "optin.h"
  8.  
  9. unsigned long clock_s;
  10. unsigned long clock_e;
  11. unsigned long time_s;
  12. unsigned long time_e;
  13.  
  14. void Display_Finished()
  15. {
  16.   if (opts.Options & PROMPTEXIT)
  17.   {
  18.     WAIT_FOR_KEYPRESS;
  19.   }
  20. }
  21.  
  22. void MSDOS_Startup(){};
  23.  
  24. void MSDOS_Other_Credits(){};
  25.  
  26. int MSDOS_System(char *s)
  27. {
  28.  return 0;
  29. }
  30.  
  31. void MSDOS_Process_Env(void)
  32. {
  33.  if ((Option_String_Ptr = getenv("POVINI")) != NULL) 
  34.  {
  35.    if (!parse_ini_file(Option_String_Ptr))
  36.    {
  37.      Warning(0.0,"Could not find '%s' as specified in POVINI environment.\n",
  38.       Option_String_Ptr);
  39.    }
  40.  }
  41. }
  42.  
  43. void MSDOS_Process_Povray_Ini(char *s)
  44. {
  45.   char *buff;
  46.   char *t;
  47.  
  48.   if (Option_String_Ptr != NULL) 
  49.   {
  50.      return;
  51.   }
  52.  
  53.   buff=POV_MALLOC(strlen(s)+13,"temp string");
  54.   
  55.   strcpy(buff,s);
  56.   
  57.   t=strrchr(buff,'\\');
  58.   if (t==NULL)
  59.   {
  60.     t=strrchr(buff,'/');
  61.     if (t==NULL)
  62.     {
  63.       t=strrchr(buff,':');
  64.       if (t==NULL)
  65.       {
  66.          t=buff;
  67.       }
  68.     }
  69.   }
  70.  
  71.   strcpy(t,"\\povray.ini");
  72.  
  73.   parse_ini_file(buff);
  74.   
  75.   POV_FREE(buff);
  76.   
  77. }
  78.  
  79. void ZTimerInit()
  80. {
  81. };
  82.  
  83. void LZTimerOn()
  84. {
  85.   clock_s = get_200();
  86. };
  87.  
  88. void LZTimerOff()
  89. {
  90.   clock_e = (get_200())-clock_s;
  91. };
  92.  
  93. unsigned long LZTimerCount()
  94. {
  95.   return clock_e;
  96. };
  97.  
  98. void xtime(time)
  99. time_t *time;
  100. {
  101.   *time = get_200();
  102. };
  103.